import type { AppRouteModule } from "/@/router/types";

import { LAYOUT } from "/@/router/constant";
import { t } from "/@/hooks/web/useI18n";

const system: AppRouteModule = {
  path: "/system",
  name: "System",
  component: LAYOUT,
  redirect: "/system/dept",
  meta: {
    icon: "ion:settings-outline",
    title: t("routes.page.system.moduleName")
  },
  children: [

    {
      path: "dept",
      name: "DeptManagement",
      meta: {
        title: t("routes.page.system.dept"),
        ignoreKeepAlive: true
      },
      component: () => import("/@/views/dept/index.vue")
    },
    {
      path: "menu",
      name: "MenuPage",
      meta: {
        title: '菜单管理'
      },
      component: () => import("/@/views/menu/index.vue")
    }
  ]
};

export default system;
